package com.zqh.myfmmall.clients;

import com.zqh.myfmmall.fallback.OrderItemQueryClientFallback;
import com.zqh.myfmmall.result.Result;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestParam;

/**
 * @Description :
 * @Author :kono淇杭哒、
 * @Create 2022-03-02 9:54
 */
@FeignClient(value = "orderItem-query",fallbackFactory = OrderItemQueryClientFallback.class)
public interface OrderItemQueryClient{
    @GetMapping("orderItem/listByOrderId/{orderId}")
    Result listByOrderId(@PathVariable("orderId") String orderId);

    @GetMapping("orderItem/retrieve/{id}")
    Result retrieve(@PathVariable("id") String id);
}
